package com.example.mapper;

import com.example.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper  /*指定这个类为Mapper接口，类似于xml中的映射关系*/
@Repository
public interface UserMapper {

    /**
     * @Author: yajie
     * @Date: 18:13 2020/7/4
     * @Parms []
     * @ReturnType: java.util.List<com.example.pojo.User>
     * @Description: 查询所有用户
     */
    List<User> findAll();
}
